//
//  XRmenu_HDAppDelegate.h
//  XRmenu-HD
//
//  Created by Gao Yan on 11-12-3.
//  Copyright 2011年 home user. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreData/CoreData.h>

@class XRRootViewController;
@class UpdateViewController;
@interface XRmenu_HDAppDelegate : NSObject <UIApplicationDelegate> {
    
    UIWindow *window;
    XRRootViewController *rvc;
	UpdateViewController *uvc;
@private
    NSManagedObjectModel *managedObjectModel;
    NSManagedObjectContext *managedObjectContext;	    
    NSPersistentStoreCoordinator *persistentStoreCoordinator;
	
	NSManagedObjectContext *threadManagedObjectContext;
}

@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet XRRootViewController *rvc;
@property (nonatomic, retain) IBOutlet UpdateViewController *uvc;

@property (nonatomic, retain, readonly) NSManagedObjectContext *managedObjectContext;
@property (nonatomic, retain, readonly) NSManagedObjectModel *managedObjectModel;
@property (nonatomic, retain, readonly) NSPersistentStoreCoordinator *persistentStoreCoordinator;
@property (nonatomic, retain, readonly) NSManagedObjectContext *threadManagedObjectContext;

- (NSString *)applicationDocumentsDirectory;
@end